package com.example.demo.dao;

import com.example.demo.model.Song;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SongMapper {

    int deleteByPrimaryKey(Integer id);

    int insertSelective(Song record);

    Song selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Song record);

    List<Song> getListByParams(@Param("name") String name, @Param("limit") Integer limit, @Param("offset") Integer offset);

    int countByParams(@Param("name") String name);
}